package com.erp.erp_servers.ProductImg.imp;

import com.erp.erp_dao.ProductImg.IProductImgDAO;
import com.erp.erp_entitys.ProductImg.ProductImgEntity;
import com.erp.erp_entitys.ProductImg.ProductImgExample;
import com.erp.erp_servers.ProductImg.IProductImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpProductImgService implements IProductImgService {
    @Autowired
    IProductImgDAO productImgDAO;

    @Override
    public long countByExample(ProductImgExample example) {
        return productImgDAO.countByExample(example);
    }

    @Override
    public int deleteByExample(ProductImgExample example) {
        return productImgDAO.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return productImgDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ProductImgEntity record) {
        return 0;
    }

    @Override
    public int insertSelective(ProductImgEntity record) {
        return productImgDAO.insertSelective(record);
    }

    @Override
    public List<ProductImgEntity> selectByExample(ProductImgExample example) {
        return productImgDAO.selectByExample(example);
    }

    @Override
    public ProductImgEntity selectByPrimaryKey(Integer id) {
        return productImgDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(ProductImgEntity record, ProductImgExample example) {
        return productImgDAO.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(ProductImgEntity record, ProductImgExample example) {
        return productImgDAO.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(ProductImgEntity record) {
        return productImgDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProductImgEntity record) {
        return productImgDAO.updateByPrimaryKey(record);
    }
}
